﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddVolunteerControl.ascx.vb"
    Inherits="WebForm_AddVolunteerControl" %>
<%@ Register Assembly="CheckBoxRequireControl" Namespace="CheckBoxRequireControl"
    TagPrefix="cc1" %>
<%--<%@ Register Src="~/Public/VerificationCode.ascx" TagName="VerificationCode" TagPrefix="My" %>
--%><%@ Register Src="~/WebForm/CommonControl/CalendarTextBox.ascx" TagName="CalendarTextBox"
    TagPrefix="My" %>
<%--<%@ Reference Control="~/Public/VerificationCode.ascx" %>
--%><%@ Reference Control="~/WebForm/CommonControl/CalendarTextBox.ascx" %>
<%@ Register Src="~/WebForm/CommonControl/ChangeRecordControl.ascx" TagName="ChangeRecordControl"
    TagPrefix="My" %>
<script type="text/javascript" language="javascript">
    function isOver(sText,len)
    {
        var intlen=sText.value.length;
        
        if (intlen>len)
        {
            alert("局列管名單字數不可超過"+len);
            sText.value = sText.value.substring(0,len)
            sText.focus();
            //sText.select();
            
        }
    }
    
    function isOver1(sText,len)
    {
        var intlen=sText.value.length;
        
        if (intlen>len)
        {
            //alert("局列管名單字數不可超過"+len);
            sText.value = sText.value.substring(0,len)
            sText.focus();
            //sText.select();
            
        }
    }
</script>
<asp:FormView ID="fv" runat="server">
    <ItemTemplate>
        <table width="100%" align="center">
            <asp:MultiView ID="mvEnlistHeaderInfo" runat="server" ActiveViewIndex="0" Visible="false">
                <asp:View ID="vwEnlistHeaderInfo" runat="server">
                    <tr>
                        <td colspan="4" class="Section">
                            <asp:Label ID="lblEnlistHeaderInfo" runat="server" meta:resourcekey="lblEnlistHeaderInfo"></asp:Label>
                        </td>
                    </tr>
                </asp:View>
            </asp:MultiView>
            <tr>
                <td colspan="4">
                    <asp:FormView ID="fvEnlistHeader" runat="server" DefaultMode="ReadOnly" Width="100%"
                        BorderWidth="0">
                        <ItemTemplate>
                            <table width="100%" align="center">
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblEnlistName" runat="server" meta:resourcekey="lblEnlistName"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtEnlistName" runat="server" Text='<%#Bind("EnlistName") %>' Enabled="false"></asp:TextBox>
                                        <asp:Label ID="lblEndDate" runat="server" Text='<%#Bind("EndDate") %>' Visible="false"></asp:Label>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblOrganizationName" runat="server" meta:resourcekey="lblOrganizationName"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtOrganizationName" runat="server" Text='<%#Bind("OrganizationName") %>'
                                            Enabled="false"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblPeopleRequired" runat="server" meta:resourcekey="lblPeopleRequired"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtPeopleRequired" runat="server" Text='<%#Bind("PeopleRequired") %>'
                                            Enabled="false"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblLocation" runat="server" meta:resourcekey="lblLocation"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtLocation" runat="server" Text='<%#Bind("Location") %>' Enabled="false"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblDescription" runat="server" meta:resourcekey="lblDescription"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:Label ID="txtDescription" runat="server" Text='<%#Bind("Description") %>'></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblOwner" runat="server" meta:resourcekey="lblOwner"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtOwner" runat="server" Text='<%#Bind("Owner") %>' Enabled="false"></asp:TextBox>
                                    </td>
                                </tr>
                                <%--                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:DropDownList ID="ddlOrganization" runat="server">
                                        </asp:DropDownList>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlOrganization"
                                            Display="None" meta:resourcekey="rfvOrganization" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
--%>
                            </table>
                        </ItemTemplate>
                    </asp:FormView>
                </td>
            </tr>
            <tr>
                <td colspan="4" class="Section">
                    <asp:Label ID="lblActive" Text='<%#Eval("Active") %>' runat="server" Visible="false"></asp:Label>
                    <asp:Label ID="lblBasicInfo" runat="server" meta:resourcekey="lblBasicInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtVolunteerID"
                        Display="None" meta:resourcekey="RequireVolunteerID" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblVolunteerID" runat="server" meta:resourcekey="lblVolunteerID"></asp:Label>
                </td>
                <td align="left" colspan="1">
                    <asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:TextBox AutoPostBack="true" OnTextChanged="txtVolunteerID_TextChanged" ID="txtVolunteerID"
                                runat="server" MaxLength="50" Text='<%#Bind("VolunteerID") %>'></asp:TextBox>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <asp:CustomValidator ID="CustomValidator1" runat="server" Display="None" ValidationGroup="vInsert"
                        ControlToValidate="txtVolunteerID" ErrorMessage="CustomValidator" SetFocusOnError="True"
                        OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator>
                </td>
                <td colspan="2">
                    <asp:Label ID="lblVolunteerIDDescription" SkinID="usage" runat="server" meta:resourcekey="lblVolunteerIDDescription"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblIdentificationType" runat="server" meta:resourcekey="lblIdentificationType"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:RadioButtonList ID="rdoIdentificationType" runat="server" RepeatDirection="Horizontal"
                        Font-Size="9pt">
                    </asp:RadioButtonList>&nbsp;
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtVolunteerName"
                        Display="None" meta:resourcekey="RequireVolunteerName" SetFocusOnError="True"
                        ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblVolunteerName" runat="server" meta:resourcekey="lblVolunteerName"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtVolunteerName" MaxLength="50" runat="server" Text='<%#Bind("VolunteerName") %>'></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Label ID="lblEcolifeID" runat="server" meta:resourcekey="lblEcolifeID"></asp:Label>
                </td>
                <td align="left">
                    <asp:TextBox ID="txtEcolifeID" MaxLength="50" runat="server" Text='<%#Bind("EcolifeID") %>'></asp:TextBox>
                </td>
            </tr>
            <%--密碼欄位，只有註冊或維護個人資料時顯示--%>
            <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
                <asp:View ID="vwChangePassword" runat="server">
                    <tr>
                        <td align="right">
                            <asp:Label ID="lblVolunteerPassword" runat="server" meta:resourcekey="lblVolunteerPassword"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtVolunteerPassword" runat="server" TextMode="Password"></asp:TextBox>
                        </td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtVolunteerPassword"
                            Display="None" meta:resourcekey="RequireVolunteerPassword" SetFocusOnError="True"
                            ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                        <td align="right">
                            <asp:Label ID="lblConfirmPassword" runat="server" meta:resourcekey="lblConfirmPassword"></asp:Label>
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                        </td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="txtConfirmPassword"
                            Display="None" meta:resourcekey="RequireConfirmPassword" SetFocusOnError="True"
                            ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ValidationGroup="vInsert"
                            Display="None" ControlToCompare="txtVolunteerPassword" ControlToValidate="txtConfirmPassword"
                            meta:resourcekey="ComparePassword"></asp:CompareValidator>
                    </tr>
                </asp:View>
                <asp:View ID="vwRestorePassword" runat="server">
                    <tr>
                        <td align="right">
                        </td>
                        <td align="left">
                            <asp:Button ID="btnRestorePassword" runat="server" CommandName="btnRestorePassword"
                                meta:resourcekey="btnRestorePassword" />
                        </td>
                    </tr>
                </asp:View>
            </asp:MultiView><%--        <tr>
            <td align="right">
                <asp:Label ID="lblIdentification" runat="server" meta:resourcekey="lblIdentification"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtIdentification" runat="server"></asp:TextBox>
            </td>

        </tr>--%>
            <tr>
                <td align="right">
                    <asp:Label ID="lblGender" runat="server" meta:resourcekey="lblGender"></asp:Label>
                </td>
                <td align="left">
                    <asp:UpdatePanel ID="upGender" runat="server" UpdateMode="Conditional">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="txtVolunteerID" />
                        </Triggers>
                        <ContentTemplate>
                            <asp:RadioButtonList ID="rdoGender" runat="server" RepeatDirection="Horizontal" Enabled="false">
                            </asp:RadioButtonList>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td align="right">
                    <asp:Label ID="lblBirthday" runat="server" meta:resourcekey="lblBirthday"></asp:Label>
                </td>
                <td align="left">
                    <My:CalendarTextBox ID="txtBirthday" runat="server" MinYear="1912" Text='<%#Bind("Birthday") %>' />
                    <%--<asp:TextBox AutoPostBack="false" ID="txtBirthday" runat="server" Text='<%#Bind("Birthday","{0:yyyy/MM/dd}") %>'></asp:TextBox>--%>
                    <asp:Label ID="lblBirthdayTip" meta:resourcekey="lblBirthdayTip" SkinID="tip" runat="server"></asp:Label>
                    <%--                    <ajaxToolkit:CalendarExtender ID="ceBirthday" runat="server" TargetControlID="txtBirthday"
                        Format="yyyy/MM/dd">
                    </ajaxToolkit:CalendarExtender>
                    <asp:RequiredFieldValidator ID="rfvBirthday" runat="server" ControlToValidate="txtBirthday"
                        Display="None" meta:resourcekey="rfvBirthday" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                    <asp:CompareValidator meta:resourcekey="cvBirthday" ID="cvBirthday" runat="server"
                        ControlToValidate="txtBirthday" Display="None" Operator="DataTypeCheck" SetFocusOnError="True"
                        Type="Date" ValidationGroup="vInsert"></asp:CompareValidator>
--%>
                </td>
            </tr>
            <tr>
                <td align="right">
                    &nbsp;<asp:Label ID="lblOfficePhone" runat="server" meta:resourcekey="lblOfficePhone"></asp:Label></td>
                <td align="left">
                    <asp:TextBox ID="txtOfficePhone" runat="server" MaxLength="50" Text='<%# Bind("OfficePhone") %>'></asp:TextBox></td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtOfficePhone"
                    Display="None" meta:resourcekey="RequireOfficePhone" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                <td align="right">
                    <asp:Label ID="lblMobilePhone" runat="server" meta:resourcekey="lblMobilePhone"></asp:Label></td>
                <td align="left">
                    <asp:TextBox ID="txtMobilePhone" runat="server" MaxLength="10" Text='<%# Bind("MobilePhone") %>'></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                        Display="None" meta:resourcekey="ErrorEmail" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="vInsert"></asp:RegularExpressionValidator>
                    <asp:Label ID="lblEmail" runat="server" meta:resourcekey="lblEmail"></asp:Label></td>
                <td align="left" colspan="3">
                    <asp:TextBox ID="txtEmail" runat="server" MaxLength="100" Text='<%# Bind("Email") %>'
                        Width="99%"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtAddress"
                        Display="None" meta:resourcekey="RequireAddress" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblAddress" runat="server" meta:resourcekey="lblAddress"></asp:Label></td>
                <td align="left" colspan="3">
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlParentRegionID" OnSelectedIndexChanged="ddlParentRegionID_OnSelectedIndexChanged"
                                runat="server" AutoPostBack="true">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlParentRegionID"
                                Display="None" meta:resourcekey="RequireParentRegion" SetFocusOnError="True"
                                ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                            <asp:DropDownList ID="ddlRegionID" runat="server">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlRegionID"
                                Display="None" meta:resourcekey="RequireRegion" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                            <asp:TextBox ID="txtAddress" runat="server" MaxLength="100" Text='<%# Bind("Address") %>'
                                Width="60%" OnTextChanged="txtBirthAddress_OnTextChanged" AutoPostBack="true"></asp:TextBox>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblSameAddress" runat="server" meta:resourcekey="lblSameAddress"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:Label ID="hideSameAddress" Text='<%# Bind("SameAddress") %>' runat="server"
                        Visible="false"></asp:Label><asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:CheckBox runat="server" ID="chkSameAddress" AutoPostBack="True" OnCheckedChanged="chkSameAddress_CheckedChanged">
                                </asp:CheckBox>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="txtBirthAddress"
                        Display="None" meta:resourcekey="RequireBirthAddress" SetFocusOnError="True"
                        ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                    <asp:Label ID="lblBirthAddress" runat="server" meta:resourcekey="lblBirthAddress"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlBirthParentRegionID" OnSelectedIndexChanged="ddlBirthParentRegionID_OnSelectedIndexChanged"
                                runat="server" AutoPostBack="true">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="ddlBirthParentRegionID"
                                Display="None" meta:resourcekey="RequireBirthParentRegion" SetFocusOnError="True"
                                ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                            <asp:DropDownList ID="ddlBirthRegionID" OnSelectedIndexChanged="ddlBirthRegionID_OnSelectedIndexChanged"
                                runat="server" AutoPostBack="true">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="ddlBirthRegionID"
                                Display="None" meta:resourcekey="RequireBirthRegion" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                            <asp:TextBox ID="txtBirthAddress" runat="server" MaxLength="100" Text='<%# Bind("BirthAddress") %>'
                                Width="60%"></asp:TextBox>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEmergentPerson" runat="server" meta:resourcekey="lblEmergentPerson"></asp:Label></td>
                <td align="left">
                    <asp:TextBox ID="txtEmergentPerson" runat="server" MaxLength="50" Text='<%# Bind("EmergentPerson") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="txtEmergentPerson"
                        Display="None" meta:resourcekey="rfvEmergentPerson" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
                <td align="right">
                    <asp:Label ID="lblEmergentPhone" runat="server" meta:resourcekey="lblEmergentPhone"></asp:Label></td>
                <td align="left">
                    <asp:TextBox ID="txtEmergentPhone" runat="server" MaxLength="50" Text='<%# Bind("EmergentPhone") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="txtEmergentPhone"
                        Display="None" meta:resourcekey="rfvEmergentPhone" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEducationLevel" runat="server" meta:resourcekey="lblEducationLevel"></asp:Label></td>
                <td align="left">
                    <asp:DropDownList ID="ddlEducationLevel" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvEducationLevel" runat="server" ControlToValidate="ddlEducationLevel"
                        Display="None" meta:resourcekey="rfvEducationLevel" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblRetired" runat="server" meta:resourcekey="lblRetired"></asp:Label></td>
                <td align="left">
                    <asp:DropDownList ID="ddlRetired" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvRetired" runat="server" ControlToValidate="ddlRetired"
                        Display="None" meta:resourcekey="rfvRetired" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
                <td align="right">
                    <asp:Label ID="lblOccupationType" runat="server" meta:resourcekey="lblOccupationType"></asp:Label></td>
                <td align="left">
                    <asp:DropDownList ID="ddlOccupationType" runat="server">
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator ID="rfvOccupationType" runat="server" ControlToValidate="ddlOccupationType"
                        Display="None" meta:resourcekey="rfvOccupationType" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <asp:PlaceHolder ID="phService" runat="server">
            <tr>
                <td colspan="4" class="Section">
                     <asp:Label ID="lblServiceInfo" runat="server" meta:resourcekey="lblServiceInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                   <asp:Label ID="lblStatus" runat="server" meta:resourcekey="lblStatus"></asp:Label></td>
                </td>
                <td align="left">
                   <asp:DropDownList ID="ddlStatus" runat="server"></asp:DropDownList>
                </td>
                <td align="right">
                   <asp:Label ID="lblRecoverDate" runat="server" meta:resourcekey="lblRecoverDate"></asp:Label></td>
                </td>
                <td align="left">
                   <My:CalendarTextBox ID="txtRecoverDate" runat="server" Text='<%#Bind("RecoverDate") %>' />
                </td>
            </tr>
            </asp:PlaceHolder>
             <asp:PlaceHolder ID="phAdmin" runat="server">
            <tr>
                <td align="right">
                    <asp:Label ID="lblComment" runat="server" meta:resourcekey="lblComment"></asp:Label></td>
                <td colspan="3">
                    <asp:TextBox ID="txtComment" runat="server" Rows="4" Width="85%" Text='<%# Bind("Comment") %>' TextMode="MultiLine" MaxLength="600"></asp:TextBox><br />
                    <asp:Label ID="Label2" runat="server" Text="說明：備註最多可輸入600個字數" ForeColor="blue"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblBlackList" runat="server" meta:resourcekey="lblBlackList"></asp:Label></td>
                <td colspan="3">
                    <asp:TextBox ID="txtBlackList" runat="server" Rows="4" Width="85%" Text='<%# Bind("BlackList") %>' TextMode="MultiLine" MaxLength="10"></asp:TextBox><br />
                    <asp:Label ID="lblBlackListState" runat="server" Text="說明：局列管名單最多可輸入200個字數" ForeColor="blue"></asp:Label>
                </td>
            </tr>
            </asp:PlaceHolder>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPersonName" runat="server" meta:resourcekey="lblPersonName"></asp:Label></td>
                <td colspan="3">
                    <asp:TextBox ID="txtPersonName" runat="server" Width="75%" Text='<%# Bind("PersonName") %>' MaxLength="50"></asp:TextBox><br />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblPhotoPath" runat="server" meta:resourcekey="lblPhotoPath"></asp:Label></td>
                <td align="left" colspan="3">
                    <asp:FileUpload ID="fuPhotoPath" runat="server" />
                    <asp:Button ID="btnChangePhotoPath" CommandName="btnChangePhotoPath" runat="server"
                        meta:resourcekey="btnChangePhotoPath" OnPreRender="btnChangePhotoPath_PreRender" />
                    <asp:Button ID="btnWebCam" Visible="true" onclientclick="window.open('../WebCam/WebCam.aspx',null,'height=500,width=750' );return false;"  runat="server" meta:resourcekey="btnWebCam" />
                    <asp:Image ID="imgPhoto" runat="server" ImageUrl='<%# Me.PhotoPathBase + Eval("PhotoPath") + "?" + (New Random()).Next().ToString() %>'
                        AlternateText='<%# Eval("PhotoPath") %>' Width="80" Height="100" />
                </td>
            </tr>            
            <tr>
                <td colspan="4" class="Section">
                    <asp:Label ID="lblAvailableTimeInfo" runat="server" meta:resourcekey="lblAvailableTimeInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblAvailableWorkPeriod" runat="server" meta:resourcekey="lblAvailableWorkPeriod"></asp:Label>
                </td>
                <td align="left" colspan="3">
                    <%--                    <asp:TextBox ID="txtAvailableWorkStartDate" runat="server"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="ceAvailableWorkStartDate" runat="server" TargetControlID="txtAvailableWorkStartDate">
                    </ajaxToolkit:CalendarExtender>
                    ~
                    <asp:TextBox ID="txtAvailableWorkEndDate" runat="server"></asp:TextBox>
                    <ajaxToolkit:CalendarExtender ID="ceAvailableWorkEndDate" runat="server" TargetControlID="txtAvailableWorkEndDate">
                    </ajaxToolkit:CalendarExtender>--%>
                    <My:MyGridView ID="gvAvailableWorkPeriod" OnRowDataBound="gvAvailableWorkPeriod_RowDataBound"
                        SkinID="pager" runat="server" AllowHoverEffect="false" AllowHoverSelect="false">
                        <Columns>
                            <asp:BoundField DataField="AvailableWorkTime" meta:resourcekey="bfAvailableWorkTime" />
                            <asp:TemplateField meta:resourcekey="bfSundayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkSunday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideSunday" runat="server" value='<%# Bind("SundayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="bfMondayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkMonday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideMonday" runat="server" value='<%# Bind("MondayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="bfTuesdayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkTuesday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideTuesday" runat="server" value='<%# Bind("TuesdayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="bfWednesdayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkWednesday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideWednesday" runat="server" value='<%# Bind("WednesdayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="bfThursdayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkThursday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideThursday" runat="server" value='<%# Bind("ThursdayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="bfFridayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkFriday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideFriday" runat="server" value='<%# Bind("FridayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                            <asp:TemplateField meta:resourcekey="bfSaturdayWorkTime">
                                <itemtemplate>
                                    <asp:CheckBox ID="chkSaturday" runat="server"></asp:CheckBox>
                                    <asp:HiddenField ID="hideSaturday" runat="server" value='<%# Bind("SaturdayWorkTime") %>' />
                                </itemtemplate>
                            </asp:TemplateField>
                        </Columns>
                    </My:MyGridView>
                </td>
            </tr>
            <%--希望棣屬單位，招募申請時不顯示--%>
            <asp:MultiView ID="MultiView4" runat="server" ActiveViewIndex="0">
                <asp:View ID="View5" runat="server">
                    <tr>
                        <td align="center">
                            <asp:Label ID="lblWishOrganization" runat="server" meta:resourcekey="lblWishOrganization"></asp:Label>
                            <br />
                            <asp:Label ID="lblWishOrganizationTip" runat="server" meta:resourcekey="lblWishOrganizationTip"></asp:Label>
                        </td>
                        <td align="left" colspan="4">
                            <asp:CheckBoxList ID="chkWishOrganization" runat="server" Font-Size="Small" RepeatColumns="4"
                                RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                            <cc1:RequiredFieldValidatorForCheckBoxLists meta:resourcekey="RequireWishOrganization"
                                SetFocusOnError="True" ControlToValidate="chkWishOrganization" ID="RequiredFieldValidatorForCheckBoxLists1"
                                runat="server" Display="None" ValidationGroup="vInsert"></cc1:RequiredFieldValidatorForCheckBoxLists>
                        </td>
                    </tr>
                </asp:View>
            </asp:MultiView>
            <%--驗證碼欄位，只有註冊時顯示--%>
            <asp:MultiView ID="MultiView2" runat="server" ActiveViewIndex="0">
                <asp:View ID="View2" runat="server">
                    <tr>
                        <td align="right">
<%--                            <asp:Label ID="lblVerificationCode" runat="server" meta:resourcekey="lblVerificationCode"></asp:Label>
--%>                        </td>
                        <td align="left" colspan="3">
<%--                            <asp:TextBox ID="txtVerificationCode" runat="server" SkinID="upper"></asp:TextBox>
--%>                            <%--                <asp:Image ID="imgVerificationCode" runat="server" ImageUrl="~/Public/VerificationCode.aspx"
                    alt="看不清楚? 點擊更換" onclick="this.src=this.src+'?'" />--%>
                       <%--     <My:VerificationCode ID="VerificationCode1" runat="server" /--%>>
                        </td>
                    </tr>
                </asp:View>
            </asp:MultiView>
        <%--    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtVerificationCode"
                Display="None" meta:resourcekey="RequireVerificationCode" SetFocusOnError="True"
                ValidationGroup="vInsert"></asp:RequiredFieldValidator>--%>
            <%--志願服務經歷--%>
            <asp:PlaceHolder ID="plExperience" runat="server" Visible="false">
                <tr>
                    <td colspan="4" class="Section">
                        <asp:Label ID="lblExperienceInfo" runat="server" meta:resourcekey="lblExperienceInfo"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblBasicTrainingHour" runat="server" meta:resourcekey="lblBasicTrainingHour"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtBasicTrainingHour" runat="server" SkinID="number" Width="30"
                            Text='<%# Bind("BasicTrainingHour") %>'></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtBasicTrainingHour"
                            Display="None" meta:resourcekey="RegularBasicTrainingHour" SetFocusOnError="True"
                            ValidationExpression="^[0-9]*$" ValidationGroup="vInsert"></asp:RegularExpressionValidator>
                        <asp:Label ID="lblHour" runat="server" meta:resourcekey="lblHour"></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:Label ID="lblBasicTrainingHourDescription" SkinID="usage" runat="server" meta:resourcekey="lblBasicTrainingHourDescription"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblSpecialTrainingHour" runat="server" meta:resourcekey="lblSpecialTrainingHour"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtSpecialTrainingHour" runat="server" SkinID="number" Width="30"
                            Text='<%# Bind("SpecialTrainingHour") %>'></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtSpecialTrainingHour"
                            Display="None" meta:resourcekey="RegularSpecialTrainingHour" SetFocusOnError="True"
                            ValidationExpression="^[0-9]*$" ValidationGroup="vInsert"></asp:RegularExpressionValidator>
                        <asp:Label ID="lblHour2" runat="server" meta:resourcekey="lblHour"></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:Label ID="lblSpecialTrainingHourDescription" SkinID="usage" runat="server" meta:resourcekey="lblSpecialTrainingHourDescription"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblWorkTrainingHour" runat="server" meta:resourcekey="lblWorkTrainingHour"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtWorkTrainingHour" runat="server" SkinID="number" Width="30" Text='<%# Bind("WorkTrainingHour") %>'></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtWorkTrainingHour"
                            Display="None" meta:resourcekey="RegularWorkTrainingHour" SetFocusOnError="True"
                            ValidationExpression="^[0-9]*$" ValidationGroup="vInsert"></asp:RegularExpressionValidator>
                        <asp:Label ID="lblHour3" runat="server" meta:resourcekey="lblHour"></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:Label ID="lblWorkTrainingHourDescription" SkinID="usage" runat="server" meta:resourcekey="lblWorkTrainingHourDescription"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblWorkHour" runat="server" meta:resourcekey="lblWorkHour"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtWorkHour" runat="server" SkinID="number" Width="30" Text='<%# Bind("WorkHour") %>'></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="txtWorkHour"
                            Display="None" meta:resourcekey="RegularWorkHour" SetFocusOnError="True" ValidationExpression="(\d+)(((\.)(\d)+))?"
                            ValidationGroup="vInsert"></asp:RegularExpressionValidator>
                        <asp:Label ID="lblHour4" runat="server" meta:resourcekey="lblHour"></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:Label ID="lblWorkHourDescription" SkinID="usage" runat="server" meta:resourcekey="lblWorkHourDescription"></asp:Label>
                    </td>
                </tr>
            </asp:PlaceHolder>
            <tr>
                <td colspan="4">
                    <hr />
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                </td>
                <td align="left" colspan="3">
                    <%--單一按鈕或審核模式按鈕--%>
                    <asp:MultiView ID="MultiView3" runat="server" ActiveViewIndex="0">
                        <asp:View ID="View3" runat="server">
                            <asp:Button ID="btnSave" runat="server" meta:resourcekey="btnSave" CommandName="btnSave"
                                ValidationGroup="vInsert" />
                            <ajaxToolkit:ConfirmButtonExtender ID="cbSave" runat="server" TargetControlID="btnSave"
                                meta:resourcekey="cbSave">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </asp:View>
                        <asp:View ID="View4" runat="server">
                            <asp:Button ID="btnSave2" runat="server" meta:resourcekey="btnSave2" CommandName="btnSave"
                                ValidationGroup="vInsert" />
                            <asp:Button ID="btnApprove" runat="server" meta:resourcekey="btnApprove" CommandName="btnApprove" />
                            <ajaxToolkit:ConfirmButtonExtender ID="cbApprove" runat="server" TargetControlID="btnApprove"
                                meta:resourcekey="cbApprove">
                            </ajaxToolkit:ConfirmButtonExtender>
                            <asp:Button ID="btnReject" runat="server" meta:resourcekey="btnReject" CommandName="btnReject" />
                            <ajaxToolkit:ConfirmButtonExtender ID="cbReject" runat="server" TargetControlID="btnReject"
                                meta:resourcekey="cbReject">
                            </ajaxToolkit:ConfirmButtonExtender>
                        </asp:View>
                    </asp:MultiView>
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" ValidationGroup="vInsert" />
    </ItemTemplate>
</asp:FormView>
<asp:PlaceHolder ID="phChangeRecordControl" runat="server">
<My:ChangeRecordControl ID="ChangeRecordControl1" runat="server" />
</asp:PlaceHolder>